//#include <stdio.h>
/*#include<string.h>
#define MAXN 20

void strmcpy( char *t, int m, char *s );
void ReadString( char s[] ); 

int main()
{
    char t[MAXN], s[MAXN];
    int m;

    scanf("%d\n", &m);
    ReadString(t);
    strmcpy( t, m, s );
    printf("%s\n", s);

    return 0;
}*/

/* 你的代码将被嵌在这里 */
void strmcpy( char *t, int m, char *s ) {
    int len = strlen(t);
    char *p = t + m -1;
    if(m > len) {
        *s = NULL;
    }
    while(*p != '\0') {
        *s = *p;
        p++;
        s++;
    }
    *s = '\0';
}
//使用函数实现字符串部分复制